package pers.cnzdy.tutorial.Chapter8_Message_Service.Section1_Broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;


public class UserDefinedBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context, "自定义广播",
                Toast.LENGTH_SHORT).show();

        abortBroadcast();
    }
}
